export default {
	id: 2,
	title: "住院基本信息",
	version: 1,
	multiple: false,
	fields: [
		{
			name: "field_4",
			type: "date",
			label: "入院日期",
			required: true,
			validator: {
				formula: "$field_5#>$field_4#",
				fields: ["field_4"],
				message: "入院时间必须早于出院时间"
			}
		},
		{
			name: "field_13",
			label: "年龄",
			type: "number",
			editable: false,
			placeholder: "根据出生日期和入院时间自动计算",
			required: false,
			rely: {
				formula: "GETAGERANGE($birthday#,$field_4#)",
				fields: [
					{ name: "birthday", formId: 1, position: "client" },
					"field_4"
				]
			}
		},
		{
			name: "field_5",
			type: "date",
			label: "出院日期",
			validator: {
				formula: "$field_5#>$field_4#",
				fields: ["field_4"],
				message: "出院时间必须晚于入院时间"
			},
			required: true
		},
		{
			name: "field_16",
			label: "ICU住院",
			unit: "d",
			required: true,
			type: "number"
		},
		{
			name: "field_17",
			label: "呼吸机时间",
			unit: "h",
			required: true,
			type: "number"
		},
		{
			name: "field_19",
			label: "术前EQ-5D",
			required: true,
			type: "number"
		},
		{
			name: "field_20",
			label: "术后EQ-5D",
			required: true,
			type: "number"
		},
		{
			name: "field_14",
			label: "住院天数",
			required: true,
			placeholder: "根据入院出院时间自动计算",
			editable: false,
			type: "number",
			rely: {
				formula: "COUNTDAYRANGE($field_4#,$field_5#)",
				fields: ["field_4", "field_5"]
			}
		},
		{
			name: "field_18",
			label: "住院费用",
			unit: "元",
			required: true,
			type: "number",
			allowNegative: false
		},
		{
			name: "field_15",
			label: "术后住院天数",
			placeholder: "根据手术、出院时间自动计算",
			editable: false,
			required: false,
			type: "number"
		}
	]
};
